home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / DIAPICK.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  1.1 KB  |  48 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // DialogClass
  8. // DiaPickList (Index Based Pick-Lists)
  9. // DiaStructPickList (Structure Based Pick-Lists)
  10. //
  11.  
  12. #include "fli.h"
  13. #include "elements.h"
  14. #include "colors.h"
  15.  
  16. #ifdef __BCPLUSPLUS__
  17. #pragma hdrstop
  18. #endif
  19.  
  20. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  21. //
  22. // DiaPickList()
  23. //
  24. // Constructor for DiaPickList
  25. //
  26. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  27.  
  28. DiaPickList::DiaPickList(int _X,int _Y,int _Width,int _Height,
  29.   int &_Item,int &_ItemCount,char **_Items) :
  30.   DiaPickGeneric(_X,_Y,_Width,_Height,_Item,_ItemCount),
  31.   Items(_Items)
  32. {
  33. }
  34.  
  35. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  36. //
  37. // GetItem()
  38. //
  39. // Gets item from non-structure, arrayed pick list
  40. //
  41. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  42.  
  43. char *DiaPickList::GetItem(int ItemNumber)
  44. {
  45.   return Items[ItemNumber];
  46. }
  47.  
  48.